<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>产线列表</title>
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/list.css"/>
	</head>
	<body>
		<!-- 蓝色背景区域 -->
		<div class="wrap">
			<!-- 白色可用区域 -->
			<div class="canuse">
				<!------ 位置 ------>
	            <p class="contentText local"><span>位置：设备管理 > 设备故障处理</span></p>
	            
            	<!-- 搜索区 -->
	            <div class="search_area">
                    <h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>查询条件</span></h4>
                    <div class="select_area">
                        <div class="select_text clear">
                        	<div class="label_input">
	                            <label class="contentText">设备名称：</label> <input type="text" name="" id="">
                        	</div>
                        	<div class="label_input">
	                            <label class="contentText">所属产线：</label> <input type="text" name="" id="">
                        	</div>
                            <div class="floatLeft">
	                            <button class="btn_search bgd_blue_search">查询</button>
	                            <button class="btn_clear bgd_white_clear">重置</button>
                            </div>
                        </div>
                    </div>
	            </div>
	            
	            <!-- 列表区 -->
	            <div class="show_list">
                	<div class="title_operate">
                    	<h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>设备故障处理列表</span></h4>
                		
                        <!-- 操作类型区 -->
                        <div class="operate_area">
							<a href="equipmentFaultAdd.html" class="bgd_add img_hand">增加</a> 
							<a class="bgd_publish img_hand" onclick="publishFault();">提交</a>
							<a class="bgd_withdraw img_hand" onclick="cancelPlan();">撤回</a>
                            <a id="del" class="bgd_delete img_hand">删除</a> 
                        </div>
                	</div>
                	<div class="list_area">
                        <!-- 信息列表区 -->
                        <div class="info_area">
                            <table class="tablelist" border="1" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr class="menuText list_head">
                                        <th class="checkSelectAll"></th>
                                        <th class="">设备名称</th>
                                        <th class="">设备编号</th>
                                        <th class="">所属产线</th>
										<th class="">故障描述</th>
										<th class="">是否影响生产</th>
										<th class="">紧急程度</th>
										<th class="">发起人</th>
										<th class="">发起时间</th>
										<th class="">处理人</th>
										<th class="">状态</th>
                                    </tr>
                                </tbody>
                                <tbody class="tablelist">
									<tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="cursor editBlue" href="equipmentFaultHandle.html">设备二</a></td>
                                        <td>002</td>
										<td>产线二</td>
										<td>故障一</td>
										<td>是</td>
										<td>紧急</td>
										<td>张三</td>
										<td>2020-1-9</td>
										<td>李四</td>
										<td>待处理</td>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                          <td><a class="cursor editBlue" href="equipmentFaultHandle.html">设备三</a></td>
										  <td>003</td>
										  <td>产线三</td>
										  <td>故障二</td>
										  <td>是</td>
										  <td>紧急</td>
										  <td>张三</td>
										  <td>2020-1-9</td>
										  <td>李四</td>
										  <td>待处理</td>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="cursor editBlue" href="equipmentFaultUpdate.html">设备一</a></td>
                                        <td>001</td>
										<td>产线一</td>
										<td>故障一</td>
										<td>是</td>
										<td>紧急</td>
										<td>张三</td>
										<td>2020-1-9</td>
										<td>李四</td>
										<td>已创建</td>
                                    </tr>
                                </tbody>

                            </table>
                        </div>
	                    <!-- 页码区域 -->
	                    <div class="page_area contentText clear">
	                    	<div class="page_sum">
	                    		共<span class="page_number"> 3 </span>页&emsp;每页 10 条&emsp;共<span class="info_sum"> 3 </span>条记录
	                    	</div>
	                        <div class="page_jump">
	                        	<span>跳转到&emsp;第</span>
	                        	<input type="text" name="" id="" value="" />
	                        	<span>页&emsp;</span>
	                        	<button>Go</button>
	                        </div>
	                        <div class="page-pull-right async-page">
	                            <button>上一页</button>
	                            <button class="select_page">1</button>
	                            <button>2</button>
	                            <button>3</button>
	                            <button style="color: rgb(30, 30, 30);">▪▪▪</button>
	                            <button>98</button>
	                            <button>99</button>
	                            <button>100</button>
	                            <button>下一页</button>
	                        </div>
	                    </div>
                    </div>
                </div>
			</div>
			
			<!-- 版尾  -->
			<div class="ending">
				Copyright© 2019-2020 磐基技术有限公司
			</div>
			
			<!-- 等待加载 -->
			<!--<div class="loader"><p class="load_hint">请等待加载••••••</p></div>-->
			
		</div>
	</body>
	<script src="../../js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src='../../js/common/common.js' type='text/javascript' charset='utf-8'></script>
	<script type="text/javascript">
		var h = document.documentElement.clientHeight;
		$(".wrap").css("height", h);
		
		// 获取每行 td 的兄弟节点
		$("td").hover(   
			function () {      
				$(this).parent().children().addClass("td_hover");   
			},    
			function () {      
				$(this).parent().children().removeClass("td_hover");   
			}
		);
		
		function publishFault(){
			alert("已提交")
		}
		
		function cancelPlan(){
			alert("已撤回")
		}
		
		// 批量删除工艺
		$("#del").click(function(){
			var list = [];//项目中要删除的id集合
			var checks = $("input[type='checkbox']:checked");
			$.each(checks,function(index, obj) {
				list.push(obj.id);
			});
		
			if(list.length <= 0) {
				alert("请至少选择一条数据");
				return;
			}
			
			window.confirm("确定要删除吗?",function(result){
				/*if(result){
					var deleteMaterialsUrl = basePath+"commonTechnology/deletesCommonTechnologyMethod";
					CommonUtils.getAjaxData({
						url : deleteMaterialsUrl,
						data : JSON.stringify(list),
						contentType : 'application/json; charset=utf-8',
						dataType:'json',
						type : 'POST',
						async:true,
					}, function(data) {
						if (data['msg'] =="SUCCESS"){
							getTableData();
						}
					});
				}*/
			});
	});
		
	</script>
</html>
